package com.atguigu.spzx.order;

import com.atguigu.spzx.cart.client.anno.EnableCartClient;
import com.atguigu.spzx.common.config.EnableSpzxAuth;
import com.atguigu.spzx.product.client.anno.EnableProductClient;
import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableCartClient
@EnableProductClient
@EnableSpzxAuth //启用登录拦截器透传登录状态
public class SpzxOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpzxOrderApplication.class,args);
    }
    @Bean
    public Logger.Level level(){
        return Logger.Level.FULL;
    }
}
